<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Memcached extends CI_Controller {

	function __construct() {
		parent::__construct();
	}

	function index() {
		$mem = new Memcache;
		$mem->connect('192.168.37.140', 11211);
		dump("before: " . $mem->get('key'));
		$mem->set('key', 'abc');
		dump("after: " . $mem->get('key'));
		$mem->set('test', 'test_mem');
		dump($mem->get('test'));
		dump($mem->get('k'));
		$mem->set('k', 'kkkkkkkkkkkkk');
	}

}

?>
